Skip to content

build: update dependency vite to v8 (main)#32769

Open
angular-robot wants to merge 1 commit intoangular:mainfrom
angular-robot:ng-renovate/main-vite-8-x
Open

build: update dependency vite to v8 (main)#32769
angular-robot wants to merge 1 commit intoangular:mainfrom
angular-robot:ng-renovate/main-vite-8-x

Conversation

@angular-robot
Copy link
Contributor

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
vite (source) 7.3.18.0.0 age adoption passing confidence

Release Notes

vitejs/vite (vite)

v8.0.0

Compare Source

Vite 8 is here!

Today, we're thrilled to announce the release of the next Vite major:

⚠ BREAKING CHANGES
  • remove import.meta.hot.accept resolution fallback (#​21382)
  • update default browser target (#​21193)
  • the epic rolldown-vite merge (#​21189)
Features
Bug Fixes
Performance Improvements
Documentation
Miscellaneous Chores
Code Refactoring
Tests
Beta Changelogs
8.0.0-beta.18 (2026-03-09)

See 8.0.0-beta.18 changelog

8.0.0-beta.17 (2026-03-09)

See 8.0.0-beta.17 changelog

8.0.0-beta.16 (2026-02-27)

See 8.0.0-beta.16 changelog

8.0.0-beta.15 (2026-02-19)

See 8.0.0-beta.15 changelog

8.0.0-beta.14 (2026-02-12)

See 8.0.0-beta.14 changelog

8.0.0-beta.13 (2026-02-05)

See 8.0.0-beta.13 changelog

8.0.0-beta.12 (2026-02-03)

See 8.0.0-beta.12 changelog

8.0.0-beta.11 (2026-01-29)

See 8.0.0-beta.11 changelog

8.0.0-beta.10 (2026-01-24)

See 8.0.0-beta.10 changelog

8.0.0-beta.9 (2026-01-22)

See 8.0.0-beta.9 changelog

8.0.0-beta.8 (2026-01-15)

See 8.0.0-beta.8 changelog

8.0.0-beta.7 (2026-01-08)

See 8.0.0-beta.7 changelog

8.0.0-beta.6 (2026-01-07)

See 8.0.0-beta.6 changelog

8.0.0-beta.5 (2025-12-25)

See 8.0.0-beta.5 changelog

8.0.0-beta.4 (2025-12-22)

See 8.0.0-beta.4 changelog

8.0.0-beta.3 (2025-12-18)

See 8.0.0-beta.3 changelog

8.0.0-beta.2 (2025-12-12)

See 8.0.0-beta.2 changelog

8.0.0-beta.1 (2025-12-08)

See 8.0.0-beta.1 changelog

8.0.0-beta.0 (2025-12-03)

See 8.0.0-beta.0 changelog

Rolldown-Vite changelogs

See rolldown-vite changelog


  • If you want to rebase/retry this PR, check this box

See associated pull request for more information.
@angular-robot angular-robot added action: merge The PR is ready for merge by the caretaker area: build & ci Related the build and CI infrastructure of the project target: automation This PR is targeted to only merge into the branch defined in Github [bot use only] labels Mar 16, 2026
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates vite to version 8, a major update which notably transitions the bundler from esbuild to Rolldown. While the lockfile has been correctly updated to reflect vite's new and updated dependencies, there are a few points to consider:

  1. Dependency Inconsistency: packages/angular/build/package.json has a direct dependency on rolldown pinned to version 1.0.0-rc.7. However, vite@8.0.0 depends on rolldown@1.0.0-rc.9. To maintain consistency and prevent potential issues, the direct rolldown dependency should be updated to 1.0.0-rc.9 as well. This might need to be addressed in a separate PR as the relevant line is not part of this change.

  2. Internal API Usage: The project patches some of Vite's internal middlewares by name (e.g., hostValidationMiddleware, viteBaseMiddleware). Major versions of Vite can introduce breaking changes to these internal APIs. It's important to verify that these middlewares still exist and function as expected in Vite 8 to avoid runtime failures.

  3. Build Configuration and Plugins: With the switch to Rolldown, some esbuild/Rollup options and plugins may no longer be applicable or could behave differently. The project uses a number of custom esbuild plugins. It would be prudent to carefully review the build logs for any new warnings from Vite about unsupported options after this upgrade.

Overall, this is a significant upgrade and these checks will help ensure a smooth transition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker area: build & ci Related the build and CI infrastructure of the project target: automation This PR is targeted to only merge into the branch defined in Github [bot use only]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant